package com.atguigu.gmall.activity.service;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.activity.SeckillGoods;

import java.util.List;

/**
 * @author tongatong
 * @name SeckillGoodsService
 * @description
 * @date 2021/10/8
 * @time 10:22
 */
public interface SeckillGoodsService {
    //查询秒杀列表
    List<SeckillGoods> findAll();
    //秒杀商品详情
    SeckillGoods getSeckillGoods(Long skuId);
    //根据用户和商品ID实现秒杀下单
    void seckillOrder(Long skuId, String userId);
    //根据商品id与用户ID查看订单信息
    Result checkOrder(Long skuId, String userId);
}
